package com.baizhi.entity;

import java.util.List;

public class Category {
    private Integer category_id;
    private String category_name;
    private Integer book_count;
    private List<Book> bookList;

    public Category() {
    }

    public Category(Integer category_id, String category_name, Integer book_count, List<Book> bookList) {
        this.category_id = category_id;
        this.category_name = category_name;
        this.book_count = book_count;
        this.bookList = bookList;
    }

    @Override
    public String toString() {
        return "Category{" +
                "category_id=" + category_id +
                ", category_name='" + category_name + '\'' +
                ", book_count=" + book_count +
                ", bookList=" + bookList +
                '}';
    }

    public Integer getCategory_id() {
        return category_id;
    }

    public void setCategory_id(Integer category_id) {
        this.category_id = category_id;
    }

    public String getCategory_name() {
        return category_name;
    }

    public void setCategory_name(String category_name) {
        this.category_name = category_name;
    }

    public Integer getBook_count() {
        return book_count;
    }

    public void setBook_count(Integer book_count) {
        this.book_count = book_count;
    }

    public List<Book> getBookList() {
        return bookList;
    }

    public void setBookList(List<Book> bookList) {
        this.bookList = bookList;
    }
}
